extern unsigned long int timer_counter32;
extern unsigned char grants_reg_status;
extern unsigned char grants_list[20][26];
extern unsigned char report_list[20][100];
extern long grant_alc;
extern long x;



//Define
#define onu_ctr2  18
#define processing_delay2 41494

//function declaration
void dba(void);

//external function declaration from transform.c

extern int changeByte2Integer(unsigned char msb,unsigned char lsb);
extern int changeByte2Int(unsigned char msb,unsigned char lsb);
extern long changeByte2Long(unsigned char byte1,unsigned char byte2,unsigned char byte3,unsigned char byte4);
extern unsigned char *changeLong2Byte(long DataVal);
extern unsigned char *changeInt2Byte(unsigned long data);


//external function declaration from main.c
extern void GATE_Normal(unsigned char DA_pointer,unsigned char flags, unsigned char *data);
